#ifndef VIEW_H
#define VIEW_H

#include <QDialog>

class ChangePassword;

namespace Ui {
class View;
}

class View : public QDialog
{
    Q_OBJECT

public:
    explicit View(QWidget *parent = nullptr);
    ~View();

    void setview(QString name);//显示登入用户信息
    bool eventFilter(QObject *watched, QEvent *event);   //事件过滤


private slots:
    void receChangePassword(QString data);

    void on_pushButton_clicked();

    void on_pushButton_2_clicked();

    void on_pushButton_3_clicked();

signals:
    void sendView(QString);


private:
    bool event(QEvent *event);

    //遮罩窗口突出显示弹窗
    void showShadeWindow();//显示遮罩窗口
    void closeShadeWindow();//关闭遮罩窗口

private:
    QWidget *mpShadeWindow;//遮罩窗口突出显示弹窗
    Ui::View *ui;
    ChangePassword *cpd;
};

#endif // VIEW_H
